/*
 * @Author: Leo.wang wanglizhigs@163.com
 * @Date: 2024-08-30 21:46:03
 * @LastEditors: Leo.wang wanglizhigs@163.com
 * @LastEditTime: 2024-09-04 23:31:19
 * @FilePath: /metaverse-manage-ruoyi-ui/src/api/login.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 登录方法
export function login(username, password, code, uuid) {
  const data = {
    username,
    password,
    code,
    uuid
  }
  return request({
    url: '/login',
    headers: {
      isToken: false,
      repeatSubmit: false
    },
    method: 'post',
    data: data
  })
}

// 注册方法
export function register(data) {
  return request({
    url: '/register',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}



// 退出方法
export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}

